package com.best.oasis.settlement.common.model
{
	
	import com.best.oasis.flexbase.util.tree.*;
	import com.best.oasis.settlement.common.vo.security.UserVO;
	
	import mx.collections.ArrayCollection;
	
	[Bindable]
	public class ModelLocator
	{
		/**
		 * 主程序是显示那个界面  
		 */		
		public var mainContentViewStackSelectedIndex:int = 0;
		
		/**
		 * 登录页面提示信息
		 * @default '' 
		 */
		public var authMsg:String = '';
		
		/**
		 * 当前登录用户
		 */
		public var loginUser:UserVO = new UserVO();

		//codeGenerator-ModelLocator            			
		public var menuItems:ArrayCollection;				
			
		static private var __instance:ModelLocator=null;
		
		public function ModelLocator(){
			if(__instance != null){
				throw new Error("Singleton!");
			}
		}
		
		static public function getInstance():ModelLocator
		{
			if(__instance == null)
			{
				__instance=new ModelLocator();
			}
			return __instance;
		}
		
	}
}
